import React, {PureComponent} from "react";
import {Button} from "antd";
import CallCenterSdk from "@/utils/callcenter/sdk/CallCenterSdk";


const CALL_CENTER_SDK = new CallCenterSdk("ChinaUnicom");
CALL_CENTER_SDK.init();
export default class Call extends PureComponent {

  render() {

    return <div>
      <Button onClick={() => {
        CALL_CENTER_SDK.makeCall("test-sdk", "18658677663", "regno", "acntName", "acntCode",
          "test", "calledName");
      }
      }>Call</Button>
      <Button onClick={() => {
        CALL_CENTER_SDK.cancelCall();
      }}>Cancel</Button>

      <Button onClick={() => {
        CALL_CENTER_SDK.pickUp();
      }}>PickUp</Button>
    </div>
  }
}
